import request from '@/utils/request'

// 查询光荣榜列表
export function listHonor(query) {
  return request({
    url: '/system/honor/list',
    method: 'get',
    params: query
  })
}

// 查询光荣榜详细
export function getHonor(honorId) {
  return request({
    url: '/system/honor/' + honorId,
    method: 'get'
  })
}

// 新增光荣榜
export function addHonor(data) {
  return request({
    url: '/system/honor',
    method: 'post',
    data: data
  })
}

// 修改光荣榜
export function updateHonor(data) {
  return request({
    url: '/system/honor',
    method: 'put',
    data: data
  })
}

// 删除光荣榜
export function delHonor(honorId) {
  return request({
    url: '/system/honor/' + honorId,
    method: 'delete'
  })
}

// 导出光荣榜
export function exportHonor(query) {
  return request({
    url: '/system/honor/export',
    method: 'get',
    params: query
  })
}